﻿using Grpc.Net.Client;
using GrpcHelloWorldClient.Protos;


using var channel = GrpcChannel.ForAddress("https://localhost:5001");

var client = new HelloWorldService.HelloWorldServiceClient(channel);

var reply = await client.SayHelloAsync(
    new HelloWorldRequest { Name = "Hello SWN Client" }
    );

Console.WriteLine("Greetings:" + reply.Message);




Console.ReadKey();